package com.thesis.manage.service.utils;

import com.github.crab2died.converter.ReadConvertible;
import com.thesis.manage.service.model.SexEnum;

/**
 * @author php
 * @date 2018/1/26
 */
public class SexConverter implements ReadConvertible {
    @Override
    public Object execRead(String object) {
        if (SexEnum.MAN.getName().equals(object)) {
            return SexEnum.MAN.getValue();
        }
        return SexEnum.WOMAN.getValue();
    }
}
